<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8" import="com.tz.hospital.entity.*, java.util.List "%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<!-- 引入 layui.css -->
<link rel="stylesheet" href="/hospital_system/layui-v2.6.8/layui/css/layui.css"/>
<!-- 引入 layui.js -->
<script src="/hospital_system/layui-v2.6.8/layui/layui.js"></script>
</head>
<body>
<%if(session.getAttribute("ysid")==null){ %>
暂无权限！
<%}else{ %>
<table class="layui-table"  style="background-color:transparent; border:0px; ">
        <tr>
       
       
           <td>挂号单</td>
           <td>患者</td>
           <td>日期</td>
           <td>状态</td>         
           <td>点击以受理</td>
           
           
       </tr>
       
       <tbody>
       <% List<lists_emp> l =(List) request.getAttribute("date"); %>
        <% if (l!=null){ %>
      <%  for(lists_emp e:l){ %>
        	  <tr>
        	  <td><%=e.getGhid() %></td>
        	  <td><%=e.getBrname() %></td>
        	  <td><%=e.getGhdate() %></td>
        	  <td><%=e.getState() %></td>
        	  <td style="display:none"><%=e.getBrid() %></td>
        	  <td><button onclick="location.href='/hospital_system/kcfController?ghid=<%=e.getGhid() %>&brid=<%=e.getBrid() %>'">受理</button></td>
        	  
        	  </tr>
        	  
        	  
         <% } %>
         <% } %>
       </tbody>
       
       
     </table>
      <% } %>
</body>
</html>